#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include"string.h"
using namespace std;

void test1()
{
	bit::string s2;
	bit::string s1 = "abcdef";
	s2 = s1;
	cout << s1.c_str() << endl;
	cout << s2.c_str() << endl;
}

void test2()
{
	bit::string s2;
	bit::string s1 = "abcdef";
	s2 = s1;
	s2.push_back('x');
	s2.append("xxxxx");
	s2 += 'a';
	s2 += "asd";
	cout << s2.c_str() << endl;
	s2.insert(2, 'y');
	cout << s1.c_str() << endl;
	cout << s2.c_str() << endl;
	s2.insert(2, "lllll");
	cout << s2.c_str() << endl;

}

int main()
{
	test2();
	return 0;
}